Optimal. Leaf size=542 \[ -\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}+1\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}+1\right )}{2 d^2}-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (\frac {d}{x^2}+e\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}-\frac {b \text {Li}_2\left (-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {d c^2+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {d c^2+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {d c^2+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {d c^2+e}}\right )}{2 d^2}+\frac {b \sqrt {e} \sqrt {\frac {1}{c^2 x^2}-1} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} x \sqrt {\frac {1}{c^2 x^2}-1}}\right )}{2 d^2 \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1} \sqrt {c^2 d+e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.36, antiderivative size = 542, normalized size of antiderivative = 1.00, number of steps used = 25, number of rules used = 11, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.524, Rules used = {6303, 5792, 5788, 519, 377, 208, 5800, 5562, 2190, 2279, 2391} \[ -\frac {b \text {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {PolyLog}\left (2,\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {PolyLog}\left (2,-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 d^2}-\frac {b \text {PolyLog}\left (2,\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}+1\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {c^2 d+e}+\sqrt {e}}+1\right )}{2 d^2}-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (\frac {d}{x^2}+e\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}+\frac {b \sqrt {e} \sqrt {\frac {1}{c^2 x^2}-1} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} x \sqrt {\frac {1}{c^2 x^2}-1}}\right )}{2 d^2 \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1} \sqrt {c^2 d+e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 377
Rule 519
Rule 2190
Rule 2279
Rule 2391
Rule 5562
Rule 5788
Rule 5792
Rule 5800
Rule 6303
Rubi steps
\begin {align*} \int \frac {a+b \text {sech}^{-1}(c x)}{x \left (d+e x^2\right )^2} \, dx &=-\operatorname {Subst}\left (\int \frac {x^3 \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{\left (e+d x^2\right )^2} \, dx,x,\frac {1}{x}\right )\\ &=-\operatorname {Subst}\left (\int \left (-\frac {e x \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{d \left (e+d x^2\right )^2}+\frac {x \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{d \left (e+d x^2\right )}\right ) \, dx,x,\frac {1}{x}\right )\\ &=-\frac {\operatorname {Subst}\left (\int \frac {x \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{e+d x^2} \, dx,x,\frac {1}{x}\right )}{d}+\frac {e \operatorname {Subst}\left (\int \frac {x \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{\left (e+d x^2\right )^2} \, dx,x,\frac {1}{x}\right )}{d}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}-\frac {\operatorname {Subst}\left (\int \left (-\frac {\sqrt {-d} \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{2 d \left (\sqrt {e}-\sqrt {-d} x\right )}+\frac {\sqrt {-d} \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{2 d \left (\sqrt {e}+\sqrt {-d} x\right )}\right ) \, dx,x,\frac {1}{x}\right )}{d}+\frac {(b e) \operatorname {Subst}\left (\int \frac {1}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}} \left (e+d x^2\right )} \, dx,x,\frac {1}{x}\right )}{2 c d^2}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\operatorname {Subst}\left (\int \frac {a+b \cosh ^{-1}\left (\frac {x}{c}\right )}{\sqrt {e}-\sqrt {-d} x} \, dx,x,\frac {1}{x}\right )}{2 (-d)^{3/2}}-\frac {\operatorname {Subst}\left (\int \frac {a+b \cosh ^{-1}\left (\frac {x}{c}\right )}{\sqrt {e}+\sqrt {-d} x} \, dx,x,\frac {1}{x}\right )}{2 (-d)^{3/2}}+\frac {\left (b e \sqrt {-1+\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {-1+\frac {x^2}{c^2}} \left (e+d x^2\right )} \, dx,x,\frac {1}{x}\right )}{2 c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\operatorname {Subst}\left (\int \frac {(a+b x) \sinh (x)}{\frac {\sqrt {e}}{c}-\sqrt {-d} \cosh (x)} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}-\frac {\operatorname {Subst}\left (\int \frac {(a+b x) \sinh (x)}{\frac {\sqrt {e}}{c}+\sqrt {-d} \cosh (x)} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}+\frac {\left (b e \sqrt {-1+\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {1}{e-\left (d+\frac {e}{c^2}\right ) x^2} \, dx,x,\frac {1}{\sqrt {-1+\frac {1}{c^2 x^2}} x}\right )}{2 c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}+\frac {b \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt {c^2 d+e} \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {\operatorname {Subst}\left (\int \frac {e^x (a+b x)}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}-\sqrt {-d} e^x} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}+\frac {\operatorname {Subst}\left (\int \frac {e^x (a+b x)}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}-\sqrt {-d} e^x} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}-\frac {\operatorname {Subst}\left (\int \frac {e^x (a+b x)}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}+\sqrt {-d} e^x} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}-\frac {\operatorname {Subst}\left (\int \frac {e^x (a+b x)}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}+\sqrt {-d} e^x} \, dx,x,\text {sech}^{-1}(c x)\right )}{2 (-d)^{3/2}}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}+\frac {b \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt {c^2 d+e} \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \log \left (1-\frac {\sqrt {-d} e^x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\text {sech}^{-1}(c x)\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \log \left (1+\frac {\sqrt {-d} e^x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\text {sech}^{-1}(c x)\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \log \left (1-\frac {\sqrt {-d} e^x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\text {sech}^{-1}(c x)\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \log \left (1+\frac {\sqrt {-d} e^x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right ) \, dx,x,\text {sech}^{-1}(c x)\right )}{2 d^2}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}+\frac {b \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt {c^2 d+e} \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{\text {sech}^{-1}(c x)}\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}-\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{\text {sech}^{-1}(c x)}\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{\text {sech}^{-1}(c x)}\right )}{2 d^2}+\frac {b \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-d} x}{\frac {\sqrt {e}}{c}+\frac {\sqrt {c^2 d+e}}{c}}\right )}{x} \, dx,x,e^{\text {sech}^{-1}(c x)}\right )}{2 d^2}\\ &=-\frac {e \left (a+b \text {sech}^{-1}(c x)\right )}{2 d^2 \left (e+\frac {d}{x^2}\right )}+\frac {\left (a+b \text {sech}^{-1}(c x)\right )^2}{2 b d^2}+\frac {b \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} \tanh ^{-1}\left (\frac {\sqrt {c^2 d+e}}{c \sqrt {e} \sqrt {-1+\frac {1}{c^2 x^2}} x}\right )}{2 d^2 \sqrt {c^2 d+e} \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {\left (a+b \text {sech}^{-1}(c x)\right ) \log \left (1+\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}-\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (-\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}-\frac {b \text {Li}_2\left (\frac {c \sqrt {-d} e^{\text {sech}^{-1}(c x)}}{\sqrt {e}+\sqrt {c^2 d+e}}\right )}{2 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 42.09, size = 0, normalized size = 0.00 \[ \int \frac {a+b \text {sech}^{-1}(c x)}{x \left (d+e x^2\right )^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.18, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b \operatorname {arsech}\left (c x\right ) + a}{e^{2} x^{5} + 2 \, d e x^{3} + d^{2} x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b \operatorname {arsech}\left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{2} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 2.17, size = 3326, normalized size = 6.14 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {a+b\,\mathrm {acosh}\left (\frac {1}{c\,x}\right )}{x\,{\left (e\,x^2+d\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________